<template lang="">
  <div>这是login页面</div>
  <p>
    {{ count }}
  </p>
  {{ token.token }}---qq
  <el-button @click="clickAdd">点击增加</el-button>
  <el-button @click="updateToken">改变token的值</el-button>
  <el-button @click="clearToken">清除token</el-button>

</template>
<script setup>
  definePageMeta({
    layout:false
  })
  useHead({
    title:'这是登录页面',
    meta:[{
      name:'xixi',
      content:'登录'
    }]
  })
let count = useState("count", () => {
  return 1;
});

let token = useStore();




let clickAdd = () => {
  count.value++;
};
let updateToken = () => {
 token.updateToken('自己修改的token值')
};
let clearToken = () => {
 token.updateToken('')
};
</script>
<style lang=""></style>
